package com.yuw.homework06;

public class ClassRoom {
    private Student[] students;

    public ClassRoom() {
    }

    public ClassRoom(Student[] students) {
        this.students = students;
    }

    public Student[] getStudents() {
        return students;
    }

    public void setStudents(Student[] students) {
        this.students = students;
    }

    public void printStuInfo() {
        if (students != null && students.length > 0) {
            for (Student stu : students) {
                System.out.println("学号：" + stu.getStuNum() + " 姓名：" + stu.getStuSex()
                        + " 年龄：" + stu.getStuAge() + " 综合成绩：" + stu.caculateScore());
            }
        }
    }
}
